home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions,comp.lang.c
- Path: news.sprintlink.net!news1!ts02-and-07
- From: dlmiller@iquest.net (Doug & Rose Miller)
- Subject: Re: Bold ASCII
- X-Nntp-Posting-Host: ts02-and-07.iquest.net
- Message-ID: <DoE3z8.Ht2@iquest.net>
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Network Services
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
- References: <4i7cpj$hqa@nexen.nexen.com> <31494BF9.1654@cs.bham.ac.uk> <DoBv4w.38B@polo.demon.co.uk>
- Date: Sun, 17 Mar 1996 02:18:19 GMT
-
- john@polo.demon.co.uk (John Winters) wrote:
- +In article <31494BF9.1654@cs.bham.ac.uk>,
- +Tom (Ghoti) Kermode <txk@cs.bham.ac.uk> wrote:
- +>Matthew B. Doar wrote:
- +>>
- +>> Anyone know how to get bold strings of text
- +>> from a program (termcap related?)
- +>>
- +>> e.g.
- +>>
- +>> printf("\012 This is in bold \013\n");
- +>>
- +>> where \012 and \013 are whatever the magic ascii values
- +>> are to turn on and off bold.
- +>>
- +>> ~Matt
- +>
- +>The ascii values are \033[1m to turn bold on and \033[0m to turn it off.
- +>(out of interest)
- +
- +I don't *think* ASCII makes any definition of how to turn bold on and
- +off. ISO/ANSI C certainly doesn't.
- +
- +John
- +
- +--
- +John Winters. Wallingford, Oxon, England.
-
- Correct. There are no generic bold on/off codes. All are device- and OS-specific. The codes
- above work fine for output to the screen **on a PC running MS-DOS**. Probably won't work
- on a PC running UNIX. Certainly won't work on an IBM mainframe running MVS. Equally
- certainly won't work for printer output on a PC running MS-DOS.
-